package cn.micro.system.manage.entity;
import cn.micro.system.manage.annotate.PrivacyEncrypt;
import cn.micro.system.manage.common.enums.PrivacyTypeEnum;
import cn.micro.system.manage.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 员工信息表
 * </p>
 *
 * @author wr
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysDimEmployee extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 员工编号
     */
    private String code;

    /**
     * 姓名
     */
    private String name;
    /**
     * 性别
     */
    private Integer sex;

    /**
     * 出生日期
     */
    private LocalDate birthday;

    /**
     * 手机
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 身份证号码
     */
    @PrivacyEncrypt(type = PrivacyTypeEnum.ID_CARD)
    private String idCard;

    /**
     * 部门id
     */
    private String deptId;

    /**
     * 岗位id
     */
    private String positionId;

    /**
     * 职务ID
     */
    private String professionId;

    /**
     * 状态（1在职 0离职）
     */
    private Integer status;

    /**
     * 入职日期
     */
    private LocalDate joinDate;

    /**
     * 备注
     */
    private String remark;

    /**
     * 用户ID
     */
    private Long userId;


    public static final String ID = "id";

    public static final String CODE = "code";

    public static final String NAME = "name";

    public static final String PHONE = "phone";

    public static final String EMAIL = "email";

    public static final String DEPT_ID = "dept_id";

    public static final String POSITION_ID = "position_id";

    public static final String PROFESSION_ID = "profession_id";

    public static final String STATUS = "status";

    public static final String JOIN_DATE = "join_date";

    public static final String REMARK = "remark";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String IS_DELETED = "is_deleted";

}
